-- GENERATED SPELL FOR [Lord Banehollow] --


function spell0_9516(pUnit, Event) --@Curse of Thorns,n/a--
pUnit:FullCastSpellOnTarget(16247,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9516', 2000, 1)
end

function spell1_9516(pUnit, Event) --@Shadow Shock,n/a--
pUnit:FullCastSpellOnTarget(17399,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9516', 528, 1)
end

function Sorts_9516(pUnit, Event)
local choix_sorts_9516 = math.random(0, 1)
if choix_sorts_9516 == 0 then
pUnit:RegisterEvent('spell0_9516', 1, 1)
end
if choix_sorts_9516 == 1 then
pUnit:RegisterEvent('spell1_9516', 1, 1)
end
end

function mob9516_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9516', math.random(1500, 3000), 1)
end

function mob9516_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9516_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9516_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9516, 1, 'mob9516_Action')
RegisterUnitEvent(9516, 2, 'mob9516_Leave')
RegisterUnitEvent(9516, 3, 'mob9516_Kill')
RegisterUnitEvent(9516, 4, 'mob9516_Die')
